const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: false,
    },
    port: 9090,
    proxy: {
      "/yydream": {
        target: "http://localhost:9092",
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/yydream": "/yydream",
        },
      },
    },
  },
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [require("tailwindcss"), require("autoprefixer")],
        },
      },
    },
  },
});
